The relationship between time and position gives:
(1) rij=ri−rj=(ri0+ui(t−t0))−(rj0+uj(t−t0))
=(rijx,rijy,rijz)
where ri is the vector (rix,riy,riz) position of the ith particle and $ u_i$ is the vector velocity.
Note: html to make bold typeface for vectors in math mode is unknown to this author. Sorry.
At the time of contact, tijc, we have ,
(2) σij2=(rijc)2={(ri0+uitijc)−(rj0+ujtijc)}2
≡{(rij+uijtijc)}2={rij∙rij+2tijcrij∙uij+uij(tijc)2}
Where rij=(rij∙rij)1/2={(rijx)2+(rijy)2+(rijz)2}1/2
The relation leads to a quadratic equation for the ij collision time, tijc≡(tij−t0).
(3) uij2(tijc)2+2bijtijc+rij2−σij2=0
(4) tijc={−bij−(bij2−uij2(rij2−σij2))1/2}/uij2≡{−bij−Dij1/2}/uij2
Where :
(5) bij=rij∙uij
(6) uij2=(ui−uj)2
(7) Dij=(bij2−uij2(rij2−σij2))≡ discriminant. Note that uij in m/s is a large number while rij is very small.
Separating | Approaching, but miss | Colliding |
---|
| | |
bi>0 (forget about it) | Dj<0 (forget about it) | Dj>0 (schedule it) |
At the time of the collision, the velocities of the particles change according to,
(8) mj△ui=(mi+mj)−2(bijc/σ2)rijc=mi−△uj
We can derive this formula by assuming that particle j is stationary (reference frame) and particle i is moving on the x-axis with equal mass. The j-direction after collision is given by the line of action rijc, since that is all j feels about momentum change. Conservation of momentum means that uif+ujf=uii with the geometric interpretation of a sum of vectors in the form of a triangle. Conservation of energy gives (uif)2+(ujf)2=(uii)2. The Pythagorean theorem applied to the conservation of energy means that this triangle must be a right triangle. Therefore, we can rotate the coordinate system such that y=uif;x=uif;uif=uiicosθ;ujf=uiisineθ
Note that rijc and bijc must be updated to the point of collision before computing the velocity changes.